import QtQuick 2.0
import QtQuick.Layouts 1.1
import QtQuick.Controls 1.4
Rectangle{
    id:operatorM
    width:parent.width *1/5
//    anchors.left: operatorL.right
    height: parent.height
    color:"gray"

    ColumnLayout{
        anchors.fill: parent
        RowLayout{
            Layout.alignment: Qt.AlignCenter
            ColumnLayout{
                Text{
                    Layout.alignment: Qt.AlignHCenter|Qt.AlignVCenter
                    text:qsTr("HDG")
                    font.bold: true
                    font.pointSize: 16
                    color: "white"
                }
                Text{
                    Layout.alignment: Qt.AlignHCenter|Qt.AlignVCenter
                    text:qsTr("TRK")
                    font.bold: true
                    font.pointSize: 16
                    color: "white"
                }
            }
            CustomButton{
                fileNameold: "qrc:/image/res/old_state.png"
                fileNamenew: "qrc:/image/res/new_state.png"
            }
            ColumnLayout{
                Text{
                    Layout.alignment: Qt.AlignHCenter|Qt.AlignVCenter
                    text:qsTr("V/S")
                    font.bold: true
                    font.pointSize: 16
                    color: "white"
                }
                Text{
                    Layout.alignment: Qt.AlignHCenter|Qt.AlignVCenter
                    text:qsTr("FPA")
                    font.bold: true
                    font.pointSize: 16
                    color: "white"
                }
            }
        }
        RowLayout{
            Layout.alignment: Qt.AlignCenter
            spacing: 100
            CustomRectButton{
                id:ap1Rect
                buttonName: "AP1"
            }
            CustomRectButton{
                id:ap2Rect
                buttonName: "AP2"
            }
        }
        RowLayout{
            Layout.alignment: Qt.AlignCenter
            CustomRectButton{
                id:athrRect
                buttonName: "A/THR"
            }
        }
    }
}

